package com.niguang.govt.admin.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 12380
 * @since 2018-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_apply_salary")
public class ApplySalary extends Model<ApplySalary> {

    public static final String ID = "id";
    public static final String SALARY_ID = "salary_id";
    public static final String APPLY_USER_ID = "apply_user_id";
    public static final String BANK_CARD = "bank_card";
    public static final String APPLY_TYPE = "apply_type";
    public static final String REMARK = "remark";
    public static final String STEP_TYPE = "step_type";
    public static final String PIC_URL = "pic_url";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_TIME = "update_time";
    public static final String ADVANCE_WAY = "advance_way";
    private static final long serialVersionUID = 1L;
    private Long id;
    /**
     * 申请金额工资表ID
     */
    private Long salaryId;
    /**
     * 审批用户（包含申请用户ID）
     */
    private Long applyUserId;
    /**
     * 申请到提现的银行卡号
     */
    private String bankCard;
    /**
     * 审核状态  1--审批中 2--已同意 3--已拒绝
     */
    private Integer applyType;
    /**
     * 备注
     */
    private String remark;
    /**
     * 审核步骤类型 1--本人申请 2--班组长审核
     */
    private Long stepType;
    /**
     * 上传图片路径
     */
    private String picUrl;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    /**
     * 1--现金发放 2--银行卡转账
     */
    private Integer advanceWay;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
